Implementation of colorMap as a function(index,value)

Issue 83