Added algorithms and repaired minor problems.