correct_positive_definite function

Positive definite matrices