add util code to generate random vector
add selection sort