public Process remove(long id)  // Remove process from the list.
	{
		Process p = find(id);
		if(p != null){
			if(p == peek()){					//if head make new head
				head = p.next;
				head.previous = null;
				return p;
			}else if(p == tail){				//if tail make new tail
				p.previous = tail;
				p.previous.next = null;
				return p;
			}else{								//else link around p
				p.next.previous = p.previous; 
				p.previous.next = p.next;
				return p;
			}
				
		}else									//if not found return null
			return p;
		
	}