[minor] adding a length variable
[minor] use one options argument instead of 2 args..
[api] starting on lru implementation