Create LIFO Implementation of Generic Search Algorithm