A compact floating and grounded memristor model using single active element