New code for the k-NN background subtraction.
update