added insert method and started split method