Feature/sext nif

Add native sext codec functions to speed up 2i and potentially other leveldb queries.