Find a best fitting quad for a given input polygon