add custom input format for Bracha-Toueg algorithm