fix little bug of visualizer and test LeastSquareSplitter