added constructor to Affinity Calculator that takes a filename and generates the block locations.