Update LD_heatmap.r

removed the for loops