Added BARL algo and winner/loser test. Code needs tidying.