finding ALL pythagorean triples (solutions to a^2+b^2=c^2)