added function to convert cumulant to density matrices. fixed a bug in creating delta matrice
fixed a bug in ketIndices and convertLambda
added unit test