added deep table copy to useful function library