added first version of matlab-style array indexing and tests