add getindex function
add code for open private void
Merge branch 'master' of github.com:frankbaele/algorithms_exercises