added single map mode, corrected mem overflow in bayesmap
Former-commit-id: 613073e63563e709ed2c6c269eecb7262bedd763