Completed addElement function.
Completed removeElement and printArray functions
Fixed array copy code in addElement function