Add Inference Algorithms Code

Added all code for inference algorithm - generate cascade for graph and
greedy algorithm (naive version).
This is most basic version with many errors to analyse - convert greedy
algorithm to distributed version, generate a network properly, need to
colour graph in a systematic way, add code to for spectral partitioning
of output graph into communities for comparison with ground truth.