Added matrix stack functionality to AbstractMatrix
Cleanup