Implemented c_code for AdvancedSubtensor1