Added more functionaltiy to matrix3 class