A maiden Test fifty from Mohammad Mithun and Mahmudullah's first Test hundred in eight years drove Bangladesh to a dominant position, allowing them to declare their innings for a second time in the match