Improving deep learning for medical time series data by modeling multidimensional dependencies