Teacher sells first edition 'Harry Potter' book for $40,000 after finding it in school's trash