fixed ellipsoidal sampling by adding method to check if u is in hypercube