Mathews takes Sri Lanka to 2 wicket win