Support for reverse Bernoulli
Add different max pooling support
Fix g++ ambiguous function call
Add implementation notes