adding quickSelect plus some tests