start working on numpy-free bayes computation

Tested on darcy.

optimized fractal algorithm took 31.72 seconds