added clear method to stack and a djikstra parser with some tests