java implementation of restricted boltzman machine -- a toy program