singlepath inssort demo: made arr argument const