Refactored RDD indexing: added numpy-like syntax