Algorithm implementation practice.