Merger agreed for Hangleton infant and junior schools