Chattogram captain Mahedi Hasan starred with the bat and ball to take his side home