New padgaps works out number of gaps to insert, delete