Functions for simple A/B split test and multi-armed bandit