Ostrowski type inequalities, convex functions, Hermite-Hadamard type inequalities