Implements angles method for Triangle class