Is there are any libraries to find the optimized/best values of a distribution using MLE/MAP or we have to do the coding from scratch?