Added function to remove element from the list at specific index.