more efficient version of find-empty-point