Change lower bound strategy for non-stochastic models

- For non-stochastic models, apply the optimal policy for the mode to all
  particles instead of building a search tree. Much faster.
- Make program clang-compatible