Performance improvements by removing getGrowingFunction, renaming growFunctions funtions and using it as a dictionary.
Changed string literals from " to '.