A Modular Trigger Processing System for High Energy Physics Experiments