Restructuring GLCM class (now is a Template class)