removed std::bind and made some valgrind checks

	std::bind is doing extra allocation that slows the program (and so is not
	acceptable), to allow the program to work I needed to add to base_domains.h
	non-member function remove_elem_domain and add_elem_domain (which just
	forward to the member functions).
	Valgrind reveals a lot of mistakes that are invinsible otherwise (like
	allocating too much memory for a log...)
Implemented allocate_log, needs to place it in code

    Already added for new which is working just fine, also needed to implement
    operator new[] since (on the opposit of visual) does not just call operator
    new...