added template for readtable
added binary heap for ascii codes