Group-based Motion Prediction for Navigation in Crowded Environments