Clean up the Playlist_remove_tracks function

Use a stack allocated 'indices' variable and fix a variable typo