adedd gap-weighted subsequences kernel (recursive implementation)