K-Means Algorithm for Background Subtraction