Mixed up data segment and code segment
bug in file reading
Performance issues with vector.push_back