Add ba_net.py. It provide some method of BA model.