Added general random sparse matrix generation