composition test

routines to get composition for a vector of lgP.