fixed bug: split tree into left tree and right tree contained duplcate elements. solved by adding a manual check before pushing element into subtree