Version 1 of my matrix functions