Proto idea for nearest existing quad algorithm