Pineapple Cake with Walnuts