exercise of CSAPP2e (Computer Systems: A Programmer's Perspective, 2/E)