refactor weighted theory solver into own file

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>