added ability to calculate length of three and four vectors
this version probably doesn't work but needed to go home half way through updating