Fix bugs in combine_tile_tree()
Reorganize filter functions.
Add tile tree shift function