Adding utility function for maximizing determinant of psd matrix.