Fixed bug in structure.  Now matrix is pd