temp version edit
Beta version of storing probabilities in dense regions now implemented.