Fix LOF to count all k-dist neighbors, including ties