Wrote the helper functions to filter and count neighbors. Started script for heatgenrate reading