Add object-like global selection sort implementation