Added selection sort and some simple threading.