Memory functions of the additive Markov chains: applications to complex dynamic systems