Add preliminary LogicOp support

It is my 2nd trial to write this stuff and not too sure if i understand all these stuffs correctly .Please don't blame me and correct me if it is wrong :)

There is a native here which need to be used 
https://github.com/hrydgard/native/pull/105