Little restructuring for solving memory bug in MKL_free process and making sure LDU factorzation done only once.