Statistical Mechanics of Learning via Reverberation in Bidirectional Associative Memories