renaming things to match exercise
refactored non unique elements
exercise median: answer
renaming "arr" to "data". position at line 16 casted to int.