Implemented signature matrix generation