Uses range to comare arrays by index