TENET: Transformer Encoding Network for Effective Temporal Flow on Motion Prediction