Fix for issue 212 - Failure to create cluster heatmap

I was able to reproduce the issue by simulating a cluster with a number of hosts that does not have an exact integer square root, and tested the fix in the same way. Sorry for any incovenience.

Peter