Init algorithms with dictionary and min_length.

Currently only applies to HeadAlgorithm.