An X-Ray and Optical Study of Matter Distribution in the Galaxy Cluster A2319