added new_block_from_row_bitmask function, untested though