Fixed getClose to use a queue for points