iPhone App for triangle calculations