Readded memory monitor 2, fixed a bug in b-tree