Added new pythagorean algorithm that runs in O(n^2logn) time, similar to the O(n^2) algorithm except that the hash is substituted for a binary search