Added new sleep analysis algorithms