add compare function test in selectSort