Fixed matrices from col-first to row-first format, etc
Merge branch 'master' of https://github.com/BlackBrane/quantum

Cleaning up.