Minor updates
Build cofactor matrix