Psychologism in Logic: Some Similarities between Boole and Frege