Preference Net: Image Recognition using Ranking Reduction to Classification