added class template for NDT algorithm