added tests and basic selection sort implementation