BiteNet: Bidirectional Temporal Encoder Network to Predict Medical Outcomes