implement a measure tree

Again the chanllege is to ensure is O(log N)
commit for modifying some descriptions