Implemented TemporalMaxPooling