Most of the dynamic programming for zxcvbn done. Reconstruction of optimal pattern sequence remains.

Read comments in code. Also updated the name of scoreMatch to
calc_entropy (since we're still doing the entropy not the score yet),
which was what the guy wrote anyway.