A numerical framework for