Adding the ability to find parents of a group either recursively or statically
Fixing bugs in the parentGroups function