Removed the memory allocation for the solution x that was taking place in the decomposition function.