Added new trigonometrical methods to matrix