added matSpDlite.R