Characterization Of Hfo2-Based Reram And The Development Of A Physics Based Compact Model For The Mim Class Of Memristive Devices