Implemented methods in Mat module. Solved problems hw3.