A simple C functioning code for Restricted Boltzmann Machine