Initialization of B according to prior