Implement the instructions for the boolean stack