added nonstationary support to autoassociative trainer