added block, sub_col, sub_row, head, tail functions with tests and function sigs and doc