Stack version 1
Added simple matrix functions
Little formatting