Add interface for algoritm
Add some interfaces( IConnection, IStateBlockModel, IBlockModel) and Notifier class