changed references to SortedList to use itself as the Array as arr is now hidden

Previously the SortedList Array was accessed by the arr variable. Now SortedList is itself an Array, and the arr variable is not visible. So you can access SortedList directly with Array functions. Addresses issue #5