Improved the performance of sample for big data
Bug fix - need to sort randomly before sample
Fastest implementation so far