Start recursive part for UP and finished the first version; still buggy;
recursive UP and down finished; buggy;
Try to remove the bug?'larger than 1' in rescaleRecursiveUp;
Replace the distance-to-probability method; Keep refactoring codes;