ASTAR function

Calculate the exact MLE of a Mallows-Binomial distribution using an A* algorithm