dynamic memory using qvector and workable graph plot