Search for perimeter which generates longest set of pythagorean triples