Added a linked list + functions to insert and search in it for intermediate result variables