updated triangle troubles programming challenge to solve for any triangle (not just right triangles)