BAM: bias assignment method to generate mock catalogues. (22nd November 2018)