compare arrays using Proxy index to map positions