Implementing downfolding algorithms to perform quantum-mechanical simulations for strongly correlated functional materials