Implemented a matrix version solver

This code doesn't return the correct answer yet but its well on its way!