use fread instead of getline, lower memory, static allocation, better performance (by a lot). all win win
merge