Novel techniques for memristive multifunction logic design