Added correct algorithm in both java and python for storing samples for MFPT from random walks.