Calculation of mean from angles implemented