Integrable Nets and the KP Hierarchy