Create  gready_algorithm