Added selection based sort to main book