add note to algorithm