Made the various implementations of dicyclic groups list their elements in the
same order and added some C++ internal utility functions