fake optimize (we should iterate all leaves!), still bug on manager
fix bug: node is not returned when duplicated inserted, add debug.h