Adaptive handoff algorithm in next-generation cellular networks