removed printf()s from searchinmem() for cleaner output