Added code to cache he vesion of the solved results and function to utilize the specialized matrix