make_pd function

obtain a positive definite matrix