Pile driving and extracting equipment