forgot to chain return value from nearest in recursive calls. fixed now. nearest visualizer test looks good