A Habit Forming Optimal Growth Model