Online Learning of Non-stationary Sequences