Added histfd.m v1 and perfhist.m v1