Allow to skip lines when writing out matrix