added solution for special pythagorean triplet