Priority scheduling in the Bamboo garden trimming problem