update todo
refactoring. separate formulas from algorithm package.