Class-agnostic Reconstruction of Dynamic Objects from Videos