brain science inspired algorithms in java