An R package for implementing belief function theory