Update demo.cpp

TODO : passing point and range by reference to the isInRange function will make it faster.