configurable malloc