Implemented selection sort (rev. 6_b4)

Signed-off-by: nixnodes <code@eth.si>