All courts, whether civil or criminal possess, in the absence of any express provision, as inherent in their constitution, all such powers as are necessary to do the right and to undo a wrong in course of administration of justice on the principle quando lex aliquid alicui concedit, concedere videtur et id sine quo res ipsae esse non potest (when the law gives a person anyth