Arbiter - now with variable number of inputs