LinearSmoothingAlgorithm using pthread to parallel