corrMatrix function added