Limiting spectral distribution for a class of random matrices