An Algorithmic Framework For Differentially Private Data Analysis on Trusted Processors