Update SELECTSORT

this is sudo code doesn't guarantee it can be compiler or run