Still working on balancing function for insert