use mylib to solver matrix