My own solutions to exercises in Algorithms 4th Edition by R. Sedgewick and K.Weyne