First sort

The very first sort algorithm.
You don't call check() anywhere but I guess you should.