Update rmq_demo.cpp

bugfix - Segtree requires N * 4 positions for a sequence of N elements