Application-Driven Development Of Computational Tools And Algorithms For Machine Learning And Mean-Field Games