Implement the functionality for the calculate_max_matrix_score function, which is designed to compute the maximum score from a binary matrix. The score is calculated based on specific matrix manipulations that include toggling of rows and counting of binary values.
Functionality Requirements:
The function should accept a 2D list matrix consisting of binary values (0s and 1s).
The function should toggle entire rows to ensure the first column of the matrix consists entirely of 1s.
After ensuring the first column is all 1s, the function should calculate the maximum score based on the values in the matrix.
The score is determined by counting the number of 1s in each column and multiplying by powers of 2 based on their column indices.
Input/Output Requirements:
Input: A list of lists, matrix, where matrix[i][j] is either 0 or 1.
Example input: [[0, 0, 1], [1, 0, 0], [1, 1, 1]]
Output: An integer representing the maximum score calculated from the matrix.
Example output for the above input: 8
Implementation Instructions:
Your solution should be placed in a file named /app/solution.py.
The module should contain only the calculate_max_matrix_score function as defined in the provided function signature.