After leading frugal life, social worker donates millions of dollars to charity