Simultaneous Local Binary Feature Learning and Encoding for Homogeneous and Heterogeneous Face Recognition