Added matching for unequal array sizes