Cleaned up source code
findTriple() is now iterative not recursive