replaced malloc.h by stdlib.h and values.h by limits.g for better portability