add difference function to perform set difference operation on arrays