nearest distance | ScratchStats