helper class used for KL methods and Laplacian method
first version of KL method