RECONSTRUCTIONS OF PIECEWISE CONTINUOUS AND DISCRETE FUNCTIONS USING MOMENTS