Dean Elgar attains career best ICC Ranking