selection sort implement

Signed-off-by: Mingming Zhang <fishtown.mm@gmail.com>