added functions code to cachematrix file