The skein polynomial for links