Minimizing flow time in the wireless gathering problem