Tables for the first algorithm