fixed parse_from_stdin

Fixed #3 by using `std::getline()` instead of `std::cin.get()` and added a header `cstring` for function  `memcmp`.
Tested on g++ version 4.8.3.