Initial implementation for selection sort and measurments
Merge with local changes