def are_multisets_equal(x, y):
    """Return True if both vectors create equal multisets.

    input:
    x, y -- 1-d numpy arrays
    output:
    True if multisets are equal, False otherwise -- boolean

    Not vectorized implementation.
    """
    
    x.sort()
    y.sort()
    
    n = len(x)
    m = len(y)
    
    if (n != m):
        return False
    
    for i in range(n):
        if (x[i] != y[i]):
            return False
    
    return True