Who were the magistrates in the early Roman Republic