Restricted Botlzmann Machine (Java)