Hyper2d: a numerical code for hyperinterpolation on rectangles