GDM_CLASS: an implementation of the Generalized Dark Matter model in the Cosmic Linear Anisotropy Solving System