Bank of America beats expectations on top, bottom lines