Computer programmer in courtroom testifies to have designed a code to rig an election