Added prev pointer to LinkedElement class
It can now be used for making doubly linked list.

Signed-off-by: Ashish Madeti <ashishmadeti@gmail.com>