Solution of Programming Assignment 2

This commit contains my solution to the 2nd programming assignment. The
code was tested with invertible matrices.