added script for calculating 2D histogram