Javascript versions of classic software development algorithms