added sor filter and planefit algorithm