Insert Into Sorted Array Python Memory