Add row verification algorithm