Fixed bug with more than 2 expanded nodes
Insert function is now sorts the inserted items