working parser , Balanced tree creation algorithm created