Learning with similarity functions: A novel design for the extreme learning machine