Bug fix on vegas and miser algorithms (still working on vegas)