Fix index error in the Pyramid class
Fix index error in the Pyramid class

Fixed an index error in the Pyramid class that occured because the type of the idx array did not match 'int'

ljvmiranda921/pyswarms,ljvmiranda921/pyswarms