added default copy constructor
added default constructor
fixed bugs in stdlib and in memory allocation