Statistics for Functionalization of BN honeycomb structure by adsorption and substitution of foreign atoms