Replaced ugly functors with std::function and bind, fixed while compiling.
Removed cell class which is not really required. Fixed included constants.
Implemented not() and isneq, which produces shorter code than not(iseq()).
Implemented if without else.