Revert "Added index method to InstructionGroup"

This reverts commit cc9af2bb191338f31225c192df9739a28e29f197.

This commit only duplicates the functionality of
the existing method InstructionGroup.indexof

I'm really sorry about submitting this originally...I have no idea how I missed the existing method...