finished cs258 lab2 histogram with density