Implement bit-matrix -based implementations

Trivial implementations.  Need optimization.