Structure and mechanism of a methyltransferase ribozyme