Added an `indexElem` method to basic_group<T>
Forgot to implement Group::indexElem
Added test programs for the various implementations of `indexElem`