refactored to clean up implementation of fibonacciEncode