solution to some problems for Skiena's algorithm design manual