removed a dumb line
I think this is an optimization for realloc
removed some uneccessary stuff, converted found and carve to static inline functions