Working on more efficient elgorithms for subgroups
Added pxd file