Fixed #6

The deepCopy function was created. All tests were passed successfully.