add delete and replace element function,write four function with getfirstelement() getlastelement() getpreviouselement() getnextelement()and write a getelementbyclass(name,tag)