Added implementation of selection sort