Add functions for cache matrix solve operation