r-Process Nucleosynthesis in the Early Universe Through Fast Mergers of Compact Binaries in Triple Systems