demoing selection sort