A Handoff Algorithm based on Link Quality Prediction for Mass Transit Wireless Mesh Networks