Speed up Array#select! from O(n^2) to O(n).
Merge pull request #2146 from utkarshkukreti/speed-up-select-bang

Speed up Array#select! from O(n^2) to O(n).