stacked autoencoders: two old helper files + work on stackedAECost