Implement missing macros

Implement the following methods
- bbpCompOp
- bbpLineIntersect
- bbpSegmentIntersect
- bbpIntersectPoint

Fix some typo.