paralg.py added, bsmf alg added, base class for all algs.