Stack implementation with Array and LinkedList & Daemon Thread Test