Added few functions to primal
compare and destroy functions created, but not tested