Copy missing indexes in history table

Creation of a method that copy the temporal table indexes to the history table if they does not exist (refs #20)