Tensor Contractions using Optimized Batch GEMM Routines