Hash out algorithm structure.