Added algorithm docs.