modified PACKAGE reduce_letter_count

modified PARTITION BY ANY to PARTITION BY RANGE(key_item), and added
ORDER BY (key_item)