Analysis of madness in Hamlet