Moved matrix functions into utils.js; created series.js