Optimize codes

1. using system_call (pread) instead of library_call (fread).
2. Add Stat class for counting.

TODO:
When we send SIGINT(Ctrl+C) to the prograom, let it normal exit.