Implements some ideas from NuPIC in Java