Feature/sext nif

Add native implementation of sext to speed up 2i queries in particular.