problem 87
problem 97
problem 30 (c++)

also util.h, problem 10 in c++