Fixed functions in StackLinked, Program crashes when there is no solution