Optimistic MLE -- A Generic Model-based Algorithm for Partially Observable Sequential Decision Making