Complete copy constructor and assignment operator, add find_prefix
function