Similar Items: Jeans instability in GR and f(R) gravity