trying out the ctc algorithm