I think this is a testable BAM implementation.  still not wired to
dimers and uses delay(), but if you call latch repeatedly in a loop it
should more or less work.