Completed first draft of oldest algo.