declared helper functions as static in algorithms library, assigned var overlap signed data type