fine tuned heuristic decision between sparse and dense expm