added a simple zero pad function in case computers arent running numpy v1.7