who was the scientist who arranged the elements in horizontal rows according to increasing atomic masses?