Added implementation for insert_node_into_tree()
Updated "cmpres" calculation without ternary operator to enable use of if-optimization