Combine match indices in one array