use nullptr rather than NULL

github issue #15