Boolean Operations

I think this is rather a crude way of integrating this. 
Need to resolve some issues, such as finding the right place for constants, private classes etc.

Anyway, here it is! :)