The codes provided are written for Julia Version 0.5.1. 

The source code for algorithms 1, 2 and 3 are in NPBM.jl.

The simulated dataset is given in simulated_eg.txt.

Examples on how to use the code and explanation on the algorithm outputs are given in example.jl.