swap package:linear-base

swap a i j exchanges the positions of values at i and j of a.