Faster way of iterating over points (as Martin requested)