gender_recognition function, working good for over 80% cases