Checking in version which includes many more C interfaces to matrices/