Started changing scale to take mat64.Dense rather than [][]float64
Changed scale to take matrix of inputs