Resolve "Refactor batch NearestNeighborsDistanceTask" Closes #329 See merge request grp-fidentis/analyst2!354