integrated sparse matrices and implemented LRA problem