started a parallel version of K
fixed one profiling test
changed the DP structure from numpy array to python dict, much faster now
adding external methods for calc_K and delta