libheatmap.r

modified function for heatmap