Package for deep architectures and Restricted-Bolzmann-Machines