implemented the computation of higher moments, also for bootstrap sample