add password generation helper function.
cleanup.
fix compilation in test.
implement suffix array for suffix search.