<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def min_scalar_prod(x, y):
 """Permute vector to minimize scalar product :param x: :param y: x, y are vectors of same size :returns: min sum x[i] * y[sigma[i]] over all permutations sigma :complexity: O(n log n) """

    x = sorted(x)  # make copies
    y = sorted(y)  # to save arguments
    return sum(x[i] * y[-i - 1] for i in range(len(x)))