Implemented qucik select by using partition