implemented SBC, AND and OR

closes #2
closes #17