debug heap usage
add 2 prototypes
fix off-by-one error in n_primes_rev_shift()
type error fixed
memory leak fixed
remove debug code