An elementary approach to the polynomial $\tau$-functions of the KP-hierarchy