(#10) - more consistent style, jshint
(#15) - use binarySearch instead of linear search
(#15) - use binary search instead of linear search