Update util.hpp

change several unsigned int => uint for consistency.