Data Structures examples in Java Script / C