Should take the indices by const ref