formtrimmerwithserialwithhead.m: trim and add a serial for every block, then add a table head on top or left.