Add a matlab function for data sample without replacement.