tscube bug fix, binary search problem
top-down data cube & refactor