Add new function

This new function compress the Data and sorted the buckets from low to high.
Add new function
Merge pull request #3 from Icesory/master

compressTimingsAndSortBuckets function