Trying to vectorize calc_metric_tensor againg, now the right way