Optimal Time Data Gathering in Wireless Networks with Multidirectional Antennas