added some comments and implementation of selection sort