Add strrindex function.

This is a simple modification of strindex from the book.

Exercise 4-1.