Jailed judge performs two wedding ceremonies