motifdiscovery task to create segments