in the pose estimation, try to run k-means clustering multiple times and get average result, instead of single result at each step