about 45 minutes of tinkering at work -- tried one 2x2 example, seems to work