Added makeVector and cacheMean functions