Initial implementation of row/column scanning. See issue #17