3d pythagoras problem solving research paper fundamentals