Bayesian Nonparametric Methods For Cyber Security With Applications To Malware Detection And Classification