added interval insert solution