fixes to array swapping. added equals method for PosSymbol