An analysis of the solar flare waiting time distribution