implemented static functions scalar lerp and IsPowerOfTwo