New k-NN  based bg/fg segmentation code (from the same paper as MOG2).