Muon Phase-II pattern: update bucket formation and fix validation bug
- Extend the bucket formation logic in the Phase-2 muon pattern to consider two parameters: A maximum bucket length and a maximum gap between adjacent hits
- Fix a bug causing validation ntuple vector branches to lose index synchronisation.