Implement some numpy functions

Simple stuff