Updated matrix class.
Updated TODO.
Added polygon cutting.