[algorithms.greedy] fix documentation