Improve the speed of ir-q-points search