A new collision resistant hash function based on optimum dimensionality reduction using Walsh-Hadamard transform