tools function

Set of supplementary functions for bgmm package