add algorithm teach