in get_percentile_dict() added arr.squeeze() to reduce the number of dimensions in case if