Software Implementation of the Quine-McCluskey Algorithm for Logic Gate Minimisation