Added lset and getHistory methods for setting values with history and getting the history. Added test cases.