added fold_righti
implementation for fold_righti and more explicit tests for fold_lefti
tests for fold_righti