implemented matrix class with ability to raise matrix to power..