An upper bound for the tensor rank