Implemented matrix solving code.

Comments, code and examples.