Mendis, Mathews score half century in 2nd ODI