Reverse Polish Notation implement with red black tree and stack