Add weighted split function
Unify functions with same call
Add configuration class
Trigger configuration when initializing
Use default weighted function for ab split