Tried adding recursive branching method; tested; works perfectly fine. Method is quite fast, and works well.