algorithm updated
heatmap_algorithm_working
treating pointers as spread sheet