Added new class for logical operators, used in simulation for coset testing. Very stub-like, will need work later.