Bali bomb plot 'mastermind' in court