How long was James Madison involved with the Federalist Party