Added selection sort. Works fine, but I get the feeling that it can be more efficient.