algorithms for finding competitive equilibrium prices in microeconomics from functions or order queues