add tabling to yap
Merge pull request #1046 from DriesVanDaele/master

add tabling to yap