Local outlier factor implementation