Move basic numpy operations to separate module.