Use `/proc/$PID/smaps` value to get memory usage instead of getrusage

TODO:
- Rewrite Result class
- Write tests