Add solution to problem 18: slice.
Add solution to problem 19: rotate.