added symmetry checks in SGMatrix and modified CCustomKernel to have lhs_equals_rhs set properly