makes a little fibbonacci generator class with optional memoization