Add some chapter 4 functions

A two function definitions from chapter four: rember and firsts.