added the isEquilateral and isIsoceles functions to triangle