Java Boltzman Machine