C Matrix library