Added evaluation logic of swap, swap1, and equals.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>