Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.
Add next power of two algorithm