added memset to read_lines_m to intialize lines. removed lines intialization from main.